<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.nicolas.web.tag.ui.table.Header"%>
<%@ include file="/view/tags.jspf"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<Header> headers = new ArrayList<Header>();
	headers.add(new Header("name", "名称"));
	headers.add(new Header("cls", "类"));
	headers.add(new Header("mark", "描述"));

	List<Map<?, ?>> data = new ArrayList<Map<?, ?>>();
	Map<String, String> row1 = new HashMap<String, String>();
	row1.put("name", "默认");
	row1.put("cls", "None");
	row1.put("mark", "无样式，仅仅有列和行");
	data.add(row1);

	Map<String, String> row2 = new HashMap<String, String>();
	row2.put("name", "基本");
	row2.put("cls", "<code>.table</code>");
	row2.put("mark", "行与行之间以水平线相隔");
	data.add(row2);

	Map<String, String> row3 = new HashMap<String, String>();
	row3.put("name", "有边线");
	row3.put("cls", "<code>.table-bordered</code>");
	row3.put("mark", "表格外围均有外边框");
	data.add(row3);

	request.setAttribute("headers", headers);
	request.setAttribute("data", data);
%>
<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>标签库测试</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
	</head>
	<body>
		<div style="position: absolute; top: 50px; left: 50px; width: 700px">
			${suy:table("table table-bordered table-striped",headers,data)}
		</div>
	</body>
</html>
